package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the PTESTSETDET database table.
 * 
 */
@Embeddable
public class PtestsetdetPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;
	private long setnumber;
	private long sequencenumber;

    public PtestsetdetPK() {
    }

	@Column(unique=true, nullable=false)
	public long getSetnumber() {
		return this.setnumber;
	}
	public void setSetnumber(long setnumber) {
		this.setnumber = setnumber;
	}

	@Column(unique=true, nullable=false)
	public long getSequencenumber() {
		return this.sequencenumber;
	}
	public void setSequencenumber(long sequencenumber) {
		this.sequencenumber = sequencenumber;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof PtestsetdetPK)) {
			return false;
		}
		PtestsetdetPK castOther = (PtestsetdetPK)other;
		return 
			(this.setnumber == castOther.setnumber)
			&& (this.sequencenumber == castOther.sequencenumber);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + ((int) (this.setnumber ^ (this.setnumber >>> 32)));
		hash = hash * prime + ((int) (this.sequencenumber ^ (this.sequencenumber >>> 32)));
		
		return hash;
    }
}